<?php
require_once('class/ClientInfo.class.php');
$ObjInfo = new ClientInfo();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Informações do cliente</title>

<style>
body{
	font-family: Tahoma, Geneva, sans-serif;
	font-size:14px;
	padding:0;
	margin:0;
}
.container-topo{
	width: 100%;
	height: 184px;
	background: url(img/bg-topo.png) repeat-x top center;
}
</style>

</head>

<body onload="document.getElementById('suporte_javascript').innerHTML = 'Sim';">

<div class="container-topo">
<img src="img/logo_entrar.jpg" width="178" height="55" alt="Logo" class="logo"/>
    <table width="600" border="0">
        <tr>
            <td colspan="2">
                <h3>Informações do Servidor</h3>
            </td>
        </tr>
        <tr>
            <td width="220px">Nome do Servidor: </td>
            <td><?=$ObjInfo->pServidorName();?></td>
        </tr>
        <tr>
            <td>Servidor: </td>
            <td><?=$ObjInfo->pServidorIP();?></td>
        </tr>
        <tr>
            <td>Protocolo: </td>
            <td><?=$ObjInfo->pServidorProtocol();?></td>
        </tr>
        
        <tr>
            <td colspan="2">
                <h3>Informações do cliente</h3>
            </td>
        </tr>
        <tr>
            <td>Plataforma: </td>
            <td><?=$ObjInfo->pPlatform();?></td>
        </tr>
        <tr>
            <td>Versão da plataforma: </td>
            <td><?=$ObjInfo->pPlatformVersion();?></td>
        </tr>
        <tr>
            <td>Browser: </td>
            <td><?=$ObjInfo->pBrowser();?></td>
        </tr>
        <tr>
            <td>Versão do browser: </td>
            <td><?=$ObjInfo->pBrowserVersion();?></td>
        </tr>
        <tr>
            <td>Maior e menor versão: </td>
            <td><?=$ObjInfo->pMajorver();?> a <?=$ObjInfo->pMinorver();?></td>
        </tr>
        <tr>
            <td>Cookie Habilitado: </td>
            <td><?=$ObjInfo->pCookies() == true ? 'Sim' : 'Não';?></td>
        </tr>
        <tr>
            <td>Javascript Habilitado: </td>
            <td><span id="suporte_javascript"><noscript>Seu navegador não suporta javascript ou está desabilitado</noscript></span></td>
        </tr>
        <tr>
            <td>Javaapplets Habilitado: </td>
            <td><?=$ObjInfo->pJavaapplets() == 1 ? 'Sim' : 'Não';?></td>
        </tr>
        <tr>
            <td>Activex controls Habilitado: </td>
            <td><?=$ObjInfo->pActivexcontrols() == 1 ? 'Sim' : 'Não';?></td>
        </tr>
        <tr>
            <td>Vbscript Habilitado: </td>
            <td><?=$ObjInfo->pVbscript() == 1 ? 'Sim' : 'Não';?></td>
        </tr>
        <tr>
            <td>Versão do CSS: </td>
            <td><?=$ObjInfo->pCssversion();?></td>
        </tr>
        <tr>
            <td>Mobile: </td>
            <td><?=$ObjInfo->pIsmobiledevice() == 1 ? 'Sim' : 'Não';?></td>
        </tr>
        <tr>
            <td>Tablet: </td>
            <td><?=$ObjInfo->pIstablet() == 1 ? 'Sim' : 'Não';?></td>
        </tr>
        <tr>
            <td>IP: </td>
            <td><?=$ObjInfo->pIP();?></td>
        </tr>
        <tr>
            <td>Data/Hora: </td>
            <td><?=date("d/m/Y H:i:s");?></td>
        </tr>
    </table>
</div>
</body>
</html>

<?php
unset($ObjInfo);
?>